<?

$Db = new oracleDb;
$Db->init($_SESSION["ORCL"],
           $_SESSION["OPASS"],
           $_SESSION["SID"],
           _NO_COMMENT);

if($Db->connect()){

  $CFetchers->fetchLstCurrency($Db,
                               $SourceDb->fetchValue("srcDbMstCurrency"),
                               $nCurrency,
                               $lstCurrency);

  $CFetchers->fetchLstCbType($Db,
                             $SourceDb->fetchValue("srcDbMstCbType"),
                             $nCbType,
                             $lstCbType);

  $Db->dc();
}else{

  $Misc->usrDieJs(_DB_CONN_ERROR);
}

echo 	//Global misc function of js
      "<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"../javascript/misc.js\"></SCRIPT> \n".
      "<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"../javascript/GMisc.js\"></SCRIPT> \n".

      //This modul misc.js collections of function
      "<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"javascript/misc.js\"></SCRIPT> \n".

      //The ajax connections
      "<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"javascript/ajax.js\"></SCRIPT> \n".

      "<SCRIPT LANGUAGE=\"JavaScript\" SRC=\"../javascript/CalendarPopup.js\"></SCRIPT> \n".
			"<SCRIPT LANGUAGE=\"JavaScript\">\n".
			"var cal      = new CalendarPopup();\n".
			"var gStatus    = Array();\n".
			"    gStatus[0] = false;\n".
			"</SCRIPT> \n".

			"<link rel=\"stylesheet\" type=\"text/css\" href=\"../myMenu.css\"/>\n".

 			/**
 			* Since this is to prevent default 'enter'
 			*
 			*/
 			"<body >\n".
 			"<form  name='initMe' action=entry.php method=post>\n".

 			/**
 			* Global header
 			*
 			*/
			"<table border='1' class='dedeq' >\n".
			"<tr>\n".

			"<th> Code   </th><td> ".$GHtml->formInput("codeEnt",
                                                 $_POST["codeEnt"],
                                                 $Misc->stdProperties())." </td>\n".

      "<th> Name   </th><td ".$GHtml->rowColSpan( 1, 3).">
                          ".$GHtml->formInput("nameEnt",
                                              $_POST["nameEnt"],
                                              $Misc->stdStyle100().
                                              $Misc->stdProperties())." </td>\n".

      "<th> Acc.No </th><td> ".$GHtml->formInput("accNoEnt",
                                                 $_POST["accNoEnt"],
                                                 $Misc->stdProperties())." </td>\n".

			"</tr>\n".
      "<tr>\n".

      "<th> Type      </th><td> ".$GHtml->formDropDown("typeEnt",
                                                       $_POST["typeEnt"],
                                                       $lstCbType["TYPE"],
                                                       $Misc->stdProperties())." </td>\n".

      "<th> Currency  </th><td> ".$GHtml->formDropDown("currencyEnt",
                                                       $_POST["currencyEnt"],
                                                       $lstCurrency,
                                                       $Misc->stdProperties())." </td>\n".

      "<th> GL_ACC    </th><td> ".$GHtml->formInput("glAccEnt",
                                                    $_POST["glAccEnt"],
                                                    $Misc->stdNumStyle100().
                                                    $Misc->stdProperties())." </td>\n".

      "<th> GL_SUB_ACC</th><td> ".$GHtml->formInput("glSubAccEnt",
                                                    $_POST["glSubAccEnt"],
                                                    $Misc->stdNumStyle100().
                                                    $Misc->stdProperties())." </td>\n".

      "</tr>\n".
			"</table><br/>\n";
?>